//
//  RDBaseMacros.m
//  ReverseDiabetes
//
//  Created by 王佩璇 on 2024/8/18.
//

#import "RDBaseMacros.h"
#import <UIKit/UIKit.h>
@implementation RDBaseMacros
+ (CGFloat)statusBarHeight {
    CGFloat statusBarHeight = 0;
    if (@available(iOS 13.0, *)) {
        statusBarHeight = [UIApplication sharedApplication].windows.firstObject.windowScene.statusBarManager.statusBarFrame.size.height;
        
    } else {
        statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;
        
        
        
        
    }
    return statusBarHeight;
}
@end
